package com.yurun.mapper;

import com.yurun.entity.Visitor;
import com.yurun.model.dto.VisitLogUuidTime;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface VisitorMapper {
    int addVisitor(Visitor visitor);

    int deleteVisitorById(Long id);

    int updatePVAndLastTimeByUUID(VisitLogUuidTime dto);

    int hasUUID(String uuid);

    List<Visitor> getVisitorListByDate(String startDate,String endDate);

    List<String> getNewVisitorIpSourceByYesterDay();
}
